<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:101:"C:\Users\HUWEI\Desktop\max--houduan\houduanbishe\web/../source/application/store\view\index\index.php";i:1744287899;s:97:"C:\Users\HUWEI\Desktop\max--houduan\houduanbishe\source\application\store\view\layouts\layout.php";i:1744287899;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title><?= $setting['store']['values']['name'] ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="assets/common/i/favicon.ico"/>
    <meta name="apple-mobile-web-app-title" content="<?= $setting['store']['values']['name'] ?>"/>
    <link rel="stylesheet" href="assets/common/css/amazeui.min.css"/>
    <link rel="stylesheet" href="assets/store/css/app.css?v=<?= $version ?>"/>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_783249_c9du3u6ahxp.css">
    <script src="assets/common/js/jquery.min.js"></script>
    <script src="//at.alicdn.com/t/font_783249_e5yrsf08rap.js"></script>
    <script>
        BASE_URL = '<?= isset($base_url) ? $base_url : '' ?>';
        STORE_URL = '<?= isset($store_url) ? $store_url : '' ?>';
    </script>
</head>

<body data-type="">
<div class="am-g tpl-g">
    <!-- 头部 -->
    <header class="tpl-header">
        <!-- 右侧内容 -->
        <div class="tpl-header-fluid">
            <!-- 侧边切换 -->
            <div class="am-fl tpl-header-button switch-button">
                <i class="iconfont icon-menufold"></i>
            </div>
            <!-- 刷新页面 -->
            <div class="am-fl tpl-header-button refresh-button">
                <i class="iconfont icon-refresh"></i>
            </div>
            <!-- 其它功能-->
            <div class="am-fr tpl-header-navbar">
                <ul>
                    <!-- 欢迎语 -->
                    <li class="am-text-sm tpl-header-navbar-welcome">
                        <a href="<?= url('store.user/renew') ?>">欢迎你，<span><?= $store['user']['user_name'] ?></span>
                        </a>
                    </li>
                    <!-- 退出 -->
                    <li class="am-text-sm">
                        <a href="<?= url('passport/logout') ?>">
                            <i class="iconfont icon-tuichu"></i> 退出
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </header>
    <!-- 侧边导航栏 -->
    <div class="left-sidebar dis-flex">
        <?php $menus = $menus ?: []; $group = $group ?: 0; ?>
        <!-- 一级菜单 -->
        <ul class="sidebar-nav">
            <li class="sidebar-nav-heading"><?= $setting['store']['values']['name'] ?></li>
            <?php foreach ($menus as $key => $item): ?>
                <li class="sidebar-nav-link">
                    <a href="<?= isset($item['index']) ? url($item['index']) : 'javascript:void(0);' ?>"
                       class="<?= $item['active'] ? 'active' : '' ?>">
                        <?php if (isset($item['is_svg']) && $item['is_svg'] == true): ?>
                            <svg class="icon sidebar-nav-link-logo" aria-hidden="true">
                                <use xlink:href="#<?= $item['icon'] ?>"></use>
                            </svg>
                        <?php else: ?>
                            <i class="iconfont sidebar-nav-link-logo <?= $item['icon'] ?>"
                               style="<?= isset($item['color']) ? "color:{$item['color']};" : '' ?>"></i>
                        <?php endif; ?>
                        <?= $item['name'] ?>
                    </a>
                </li>
            <?php endforeach; ?>
        </ul>
        <!-- 子级菜单-->
        <?php $second = isset($menus[$group]['submenu']) ? $menus[$group]['submenu'] : []; if (!empty($second)) : ?>
            <ul class="left-sidebar-second">
                <li class="sidebar-second-title"><?= $menus[$group]['name'] ?></li>
                <li class="sidebar-second-item">
                    <?php foreach ($second as $item) : if (!isset($item['submenu'])): ?>
                            <!-- 二级菜单-->
                            <a href="<?= url($item['index']) ?>"
                               class="<?= (isset($item['active']) && $item['active']) ? 'active' : '' ?>">
                                <?= $item['name']; ?>
                            </a>
                        <?php else: ?>
                            <!-- 三级菜单-->
                            <div class="sidebar-third-item">
                                <a href="javascript:void(0);"
                                   class="sidebar-nav-sub-title <?= $item['active'] ? 'active' : '' ?>">
                                    <i class="iconfont icon-caret"></i>
                                    <?= $item['name']; ?>
                                </a>
                                <ul class="sidebar-third-nav-sub">
                                    <?php foreach ($item['submenu'] as $third) : ?>
                                        <li>
                                            <a class="<?= $third['active'] ? 'active' : '' ?>"
                                               href="<?= url($third['index']) ?>">
                                                <?= $third['name']; ?></a>
                                        </li>
                                    <?php endforeach; ?>
                                </ul>
                            </div>
                        <?php endif; endforeach; ?>
                </li>
            </ul>
        <?php endif; ?>
    </div>

    <!-- 内容区域 start -->
    <div class="tpl-content-wrapper <?= empty($second) ? 'no-sidebar-second' : '' ?>">
        <div class="page-home row-content am-cf">

    <!-- 商城统计 -->
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">
            <div class="widget am-cf">
                <div class="widget-head">
                    <div class="widget-title">商城统计</div>
                </div>
                <div class="widget-body am-cf">
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__blue am-cf">
                            <div class="card-header">商品总量</div>
                            <div class="card-body">
                                <div class="card-value"><?= $data['widget-card']['goods_total'] ?></div>
                                <div class="card-description">当前商品总数量</div>
                                <span class="card-icon iconfont icon-goods"></span>
                            </div>
                        </div>
                    </div>

                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__red am-cf">
                            <div class="card-header">用户总量</div>
                            <div class="card-body">
                                <div class="card-value"><?= $data['widget-card']['user_total'] ?></div>
                                <div class="card-description">当前用户总数量</div>
                                <span class="card-icon iconfont icon-user"></span>
                            </div>
                        </div>
                    </div>

                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">订单总量</div>
                            <div class="card-body">
                                <div class="card-value"><?= $data['widget-card']['order_total'] ?></div>
                                <div class="card-description">已付款订单总数量</div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>

                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__primary am-cf">
                            <div class="card-header">评价总量</div>
                            <div class="card-body">
                                <div class="card-value"><?= $data['widget-card']['comment_total'] ?></div>
                                <div class="card-description">订单评价总数量</div>
                                <span class="card-icon iconfont icon-haoping2"></span>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>

    <!-- 实时概况 -->
<!--    <div class="row">-->
<!--        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">-->
<!--            <div class="widget am-cf">-->
<!--                <div class="widget-head">-->
<!--                    <div class="widget-title">实时概况</div>-->
<!--                </div>-->
<!--                <div class="widget-body am-cf">-->
<!--                    <div class="am-u-sm-6 am-u-md-6 am-u-lg-3">-->
<!--                        <div class="widget-outline dis-flex flex-y-center">-->
<!--                            <div class="outline-left">-->
<!--                                <img src=""-->
<!--                                     alt="">-->
<!--                            </div>-->
<!--                            <div class="outline-right dis-flex flex-dir-column flex-x-between">-->
<!--                                <div style="color: rgb(102, 102, 102); font-size: 1.3rem;">销售额(元)</div>-->
<!--                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;">--><?php //= $data['widget-outline']['order_total_price']['tday'] ?><!--</div>-->
<!--                                <div style="color: rgb(153, 153, 153); font-size: 1.2rem;">-->
<!--                                    昨日：--><?php //= $data['widget-outline']['order_total_price']['ytd'] ?><!--</div>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                    <div class="am-u-sm-6 am-u-md-6 am-u-lg-3">-->
<!--                        <div class="widget-outline dis-flex flex-dir-column flex-x-between">-->
<!--                            <div style="color: rgb(102, 102, 102); font-size: 1.2rem;">支付订单数</div>-->
<!--                            <div style="color: rgb(51, 51, 51); font-size: 2.4rem;">--><?php //= $data['widget-outline']['order_total']['tday'] ?><!--</div>-->
<!--                            <div style="color: rgb(153, 153, 153); font-size: 1.2rem;">-->
<!--                                昨日：--><?php //= $data['widget-outline']['order_total']['ytd'] ?><!--</div>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                    <div class="am-u-sm-6 am-u-md-6 am-u-lg-3">-->
<!--                        <div class="widget-outline dis-flex flex-y-center">-->
<!--                            <div class="outline-left">-->
<!--                                <img src=""-->
<!--                                     alt="">-->
<!--                            </div>-->
<!--                            <div class="outline-right dis-flex flex-dir-column flex-x-between">-->
<!--                                <div style="color: rgb(102, 102, 102); font-size: 1.3rem;">新增用户数</div>-->
<!--                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;">--><?php //= $data['widget-outline']['new_user_total']['tday'] ?><!--</div>-->
<!--                                <div style="color: rgb(153, 153, 153); font-size: 1.2rem;">-->
<!--                                    昨日：--><?php //= $data['widget-outline']['new_user_total']['ytd'] ?><!--</div>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                    <div class="am-u-sm-6 am-u-md-6 am-u-lg-3">-->
<!--                        <div class="widget-outline dis-flex flex-dir-column flex-x-between">-->
<!--                            <div style="color: rgb(102, 102, 102); font-size: 1.2rem;">下单用户数</div>-->
<!--                            <div style="color: rgb(51, 51, 51); font-size: 2.4rem;">--><?php //= $data['widget-outline']['order_user_total']['tday'] ?><!--</div>-->
<!--                            <div style="color: rgb(153, 153, 153); font-size: 1.2rem;">-->
<!--                                昨日：--><?php //= $data['widget-outline']['order_user_total']['ytd'] ?><!--</div>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->

    <!-- 近七日交易走势 -->
<!--    <div class="row">-->
<!--        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">-->
<!--            <div class="widget am-cf">-->
<!--                <div class="widget-head">-->
<!--                    <div class="widget-title">近七日交易走势</div>-->
<!--                </div>-->
<!--                <div class="widget-body am-cf">-->
<!--                    <div id="echarts-trade" class="widget-echarts"></div>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->

</div>
<script src="assets/common/js/echarts.min.js"></script>
<script src="assets/common/js/echarts-walden.js"></script>
<script type="text/javascript">

    /**
     * 近七日交易走势
     * @type {HTMLElement}
     */
    var dom = document.getElementById('echarts-trade');
    echarts.init(dom, 'walden').setOption({
        tooltip: {
            trigger: 'axis'
        },
        legend: {
            data: ['成交量', '成交额']
        },
        toolbox: {
            show: true,
            showTitle: false,
            feature: {
                mark: {show: true},
                magicType: {show: true, type: ['line', 'bar']}
            }
        },
        calculable: true,
        xAxis: {
            type: 'category',
            boundaryGap: false,
            data: <?= $data['widget-echarts']['date'] ?>
        },
        yAxis: {
            type: 'value'
        },
        series: [
            {
                name: '成交额',
                type: 'line',
                data: <?= $data['widget-echarts']['order_total_price'] ?>
            },
            {
                name: '成交量',
                type: 'line',
                data: <?= $data['widget-echarts']['order_total'] ?>
            }
        ]
    }, true);

</script>
    </div>
    <!-- 内容区域 end -->

</div>
<script src="assets/common/plugins/layer/layer.js"></script>
<script src="assets/common/js/jquery.form.min.js"></script>
<script src="assets/common/js/amazeui.min.js"></script>
<script src="assets/common/js/webuploader.html5only.js"></script>
<script src="assets/common/js/art-template.js"></script>
<script src="assets/store/js/app.js?v=<?= $version ?>"></script>
<script src="assets/store/js/file.library.js?v=<?= $version ?>"></script>
</body>

</html>
